package com.totoro.tyrank.executor.command.impl;

import com.totoro.tyrank.executor.command.MainCommandExecutor;
import com.totoro.tyrank.inventory.AllRankInventory;
import com.totoro.tyrank.inventory.CurrentRankInventory;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

public class CurrentCommandExecutor implements MainCommandExecutor {
    @Override
    public void execute(CommandSender sender, String[] args) {
        if(! (sender instanceof Player)) {
            return;
        }
        Player player = (Player) sender;
        // 打开当前正在进行的排行榜
        CurrentRankInventory.openMainInv(player);
    }
}
